<template>
  <div class="title-container">
    <div class="left"><slot name="title"></slot></div>
    <div class="right">
      <slot name="btn"></slot>
    </div>
  </div>
</template>

<script>
export default {};
</script>

<style lang="less" scoped>
.title-container {
  display: flex;
  justify-content: space-between;
  .left {
    h2 {
      height: 20px;
      line-height: 30px;
      font-size: 16px;
      font-weight: bolder;
    }
  }
  .right {
    .btn {
      font-size: 14px;
      margin-right: 12px;
    }
    .btn,
    .btn2 {
      height: 24px;
      font-size: 12px;
      padding: 3px 10px;
      border: 1px solid #ccc;
      border-radius: 18px;
      color: #000;
      text-decoration: none;
    }
  }
}
</style>